//
//  UIImageView+AWGradientColor.h
//  AWBase
//
//  Created by Alan Wang on 2018/6/29.
//  Copyright © 2018年 Alan Wang. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, AWGradientType) {
    AWGradientTypeTopToBottom = 0,//从上到小
    AWGradientTypeLeftToRight = 1,//从左到右
    AWGradientTypeUpleftToLowright = 2,//左上到右下
    AWGradientTypeUprightToLowleft = 3,//右上到左下
};
@interface UIImageView (AWGradientColor)
+ (UIImage *)awGradientColorImageFromColors:(NSArray*)colors gradientType:(AWGradientType)gradientType imgSize:(CGSize)imgSize;
@end
